<?php

require_once('functions/pageLoad.php');

loginRequired();

if(isset($_GET['id'])){

$user_session = explode("_", $_SESSION['user']);

	$sql = "INSERT INTO deleted_jobs (job_id, user_id) VALUES ('".mysql_real_escape_string($_GET['id'])."', '".$user_session[0]."')";
	$query=mysql_query( $sql ) or die ("Error in query: $sql . " . mysql_error());

header("Location: /my-account");

}

?>